<style type="text/css" title="currentStyle">
	@import "<?php echo DOMAIN ?>/js/DataTables-1.9.0/css/demo_page.css";
	@import "<?php echo DOMAIN ?>/js/DataTables-1.9.0/css/demo_table.css";
</style>
<script type="text/javascript" language="javascript" src="<?php echo DOMAIN ?>/js/DataTables-1.9.0/js/jquery.js"></script>
<script type="text/javascript" language="javascript" src="<?php echo DOMAIN ?>/js/DataTables-1.9.0/js/jquery.dataTables.js"></script>
<script src="<?php echo DOMAIN ?>/js/DataTables-1.9.0/js/jquery.dataTables.columnFilter.js" type="text/javascript"></script>
<style type="text/css">
  #example_info{
    display: none;
  }
  #example_paginate{
    margin-top: 10px;
  }
  #example_paginate a{
    padding-left: 8px;
  }
  #example_length{
    display: none;
  }
  #example_filter{
    display: none;
  }
</style>
<script type="text/javascript" charset="utf-8">
			
	$(document).ready( function () {
                	$('#example').dataTable({
                    				"bJQueryUI": true,
									"aLengthMenu": [ 50, 100 ],
									"bProcessing": true,
                                    "iDisplayLength": 50,
                                     "_iDisplayLength": 50,
                                     "_iDisplayEnd": 50,
                    				"sPaginationType": "full_numbers",
                    		//		"sAjaxSource": "/doan/source/public/index.php/subjects/test-ajax",
                                    "aaSorting": [[0,"desc"]]})
                                    .columnFilter({
				                    sPlaceHolder: "head:before",
                   					aoColumns: [ null,
                               		{ type: "text"},
                               		{ type: "text"},
                   					null,
                                    null,
                                    null,
                                    { type: "text"},
                                    null,
                                    null,
                                
                                    ]
                	});	
        	 /* Add a click handler to the rows - this could be used as a callback */
									 /* Add a click handler to the rows - this could be used as a callback */
					 
		});

	function deleteNf(id){
		var comfirmBox;
    	var domain = $("#domain").val();
		 comfirmBox = confirm("Bạn có chác chắn muốn xóa không ?");
		 if(comfirmBox == true)
		  {
			 $.ajax(
				      {
				    	  type:"POST",
						  url: domain + "/notifications/delete-nf",
						  data: "id=" + id,
						  datatype: "html",
						  success: function(html)
						     {
							  $("#row" + id).remove();
						     }
				      }
				      );
		  }
	}
</script>

<?php 
	$list = $this->list;

?>

<input type="hidden" value="<?php echo DOMAIN_INDEX ?>" id="domain">
    
    <br class="cl" />
	<br class="cl" />
	<section class="grid_9" id="dashtabs" style="min-height:400px;width:100%;margin-left:0px;">
		<div class="box-header">
          	Danh sách lớp-sinh viên
        </div>
        <div id="dashtabs-comments" class="box-content no-padding">
          <table id="example" class="table no-border">
            <thead>
              <tr>
               <td align="center" width="5%">STT</td>
                <td align="center" width="20%">Tên SV</td>
                <td align="center" width="5%">SHSV</td>
                <td align="center" width="5%">Lớp</td>
                <td align="center" width="5%">Khoá </td>
                <td align="center" width="30%">Tên lớp </td>
                <td align="center" width="5%">Mã lớp </td>
                <td align="center" width="5%">Phòng học </td>
                <td align="center" width="5%">Học kỳ </td>
                
              </tr>
            </thead>
            <tbody>
              <?php 
                $i = 1;
              	foreach ($list as $key => $value) {
              		
              		?>
              		<tr <?php if($i%2) echo "class='alt'"; ?> id="<?php echo "row".$value["id"] ?>">
		                <td align="center"><?php echo $i; ?></td>
		                <td align="center"><?php echo $value["name_sv"] ?></td>
		                <td align="center"><?php echo $value["shsv_sv"] ?></td>
		                <td align="center"><?php echo $value["class_sv"] ?></td>
		                <td align="center"><?php echo $value["course_sv"] ?></td>
		                <td align="center"><?php echo $value["name_sj"] ?></td>
		                <td align="center"><?php echo $value["code_sj"] ?></td>
		                <td align="center"><?php echo $value["name_r"] ?></td>
		                <td align="center"><?php echo $value["name_s"] ?></td>
		                
		            </tr>
              		<?php
              		$i++;
              	}
              ?>
              
            </tbody>
          </table>
        </div>
      
    </section>
    
    <br class="cl" />
    <br />

        <br class="cl">

